﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--#include file="utf-8.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="Include.asp"-->
<!--#include file="page.asp"-->

<html>
<head>2
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>创意产业园</title>
<link href="style.css" rel="stylesheet" type="text/css"/>
</head>
<body>

    <div id="all">
<!--顶部板块开始-->
<!--#include file="header.asp"-->
<!--顶部板块结束-->
<div id="leader">
    <!--中部板块开始-->
        <div id="Pannel_Content">
            <div id="Content_title">政府领导 Government leaders</div>
            <div id="Content_list">
				<%	
                set rs=server.createobject("adodb.recordset") 
                exec="select * from Celeb " 
                rs.open exec,conn,1,1 
                if rs.eof then
                response.Write "&nbsp;暂无分类！"
                else
                rs.PageSize =3 '每页记录条数
                iCount=rs.RecordCount '记录总数
                iPageSize=rs.PageSize
                maxpage=rs.PageCount 
                page=request("page")
                if Not IsNumeric(page) or page="" then
                page=1
                else
                page=cint(page)
                end if
                if page<1 then
                page=1
                elseif  page>maxpage then
                page=maxpage
                end if
                rs.AbsolutePage=Page
                if page=maxpage then
                x=iCount-(maxpage-1)*iPageSize
                else
                x=iPageSize
                end if	
                %>
                <%For i=1 To x%>
                <div class="Content_list_item">
                    <div class="list_item">
                        <div class="list_img"><a href="leaderContent.asp?id=<%=rs("id")%>"><img width="100" height="145" src="<%=rs("Photo")%>" ></a></div>
                        <div class="list_text">
                            <div class="list_name"><span><%=rs("Name")%></span></div>
                            <div class="list_info">
							<%=rs("Description")%>
                            <a class="red_a" href="leaderContent.asp?id=<%=rs("id")%>">[更多]</a>
                            </div>
                        </div>  
                    </div>           
                </div>
                <%rs.movenext
                next
                %>
                <%end if%>
                <%'以下显示分页
                response.write ("<div class=""showpage"">")
                call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>")
                response.write ("</div>")
                rs.close
                set rs=nothing
                %>
                    
            </div>    
            
        </div>
    <!--中部板块结束-->
</div>
<!--底部板块开始-->
<!--#include file="bottom.asp"-->
<!--底部板块结束-->
</div>

</body>
</html>